package com.youxin.busfoundation.common.es.bean;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.youxin.busfoundation.bean.ConsoleBean;
import com.youxin.foundation.utils.DateUtil;
import java.sql.Date;
import java.util.List;

/**
 * @desc 企业基本信息
 * @author Kris.wang
 * @date 2017-12-05
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CompanyBaseBean extends ConsoleBean{
	@JsonProperty("org_approved_institute")
	private String orgApprovedInstitute;
	private List<CopyrightBean> copyright; //著作权
	private List<PatentBean> patent; //专利
	@JsonProperty("product_service")
	private List<PortraitProductServiceBean> productService; //产品与服务
	private List<OperationBean> operation; //经营异常
	private List<LawsuitBean> lawsuit; //法律诉讼
	private List<AnnouncementBean> announcement;//法院公告
	@JsonProperty("index_baidu")
	private Integer indexBaidu; //百度指数
	@JsonProperty("index_wechat")
	private Integer indexWechat;//微信指数
	private String partners;//客户案例
	@JsonProperty("members")
	private List<TeamStrengthBean> members;//团队实力
	@JsonProperty("annual_sales")
	private String annualSales;//年营业额
	private List<FinanceBean> finance;//融资记录
	private List<InvestBean> invest;//对外投资
	@JsonProperty("tax_info")
	private List<TaxInfoBean> tax;//税务评级
	private String email;//Email
	private Integer province;//省
	private Integer city;//市
	@JsonProperty("alias_name")
	private String aliasName;
	@JsonProperty("short_name")
	private String shortName;
	@JsonProperty("org_number")
	private String orgNumber;//组织机构代码
	private String address;
	@JsonProperty("website")
	private String webSite;
	@JsonProperty("change_info")
	private List<LeadsChangeInfoBean> changeInfo;
	private String uid;
	@JsonProperty("reg_number")
	private String regNumber;
	@JsonProperty("logo_url")
	private String logoUrl;
	@JsonProperty("score_rating")
	private double scoreRating;
	private Short scale;
	private List<Integer> industry;
	@JsonProperty("industry_small")
	private List<String> industrySmall;
	private String industryStr;
	private String industrySmallStr;
	private String type;
	@JsonProperty("from_time")
	private long fromTime;
	@JsonProperty("score_source")
	private double scoreSource;
	private int view;
	@JsonProperty("score_keyInfo")
	private double scoreKeyInfo;
	private String introduction;
	@JsonProperty("tax_number")
	private String taxNumberNo;
	@JsonProperty("approved_time")
	private String approvedTime;
	@JsonProperty("credit_code")
	private String creditCode;
	@JsonProperty("@version")
	private String version;
	@JsonProperty("total_score")
	private double totalScore;
	private List<String> area;
	@JsonProperty("reg_capital")
	private Float regCapital;
	private int follow;
	@JsonProperty("company_org_type")
	private String companyOrgType;
	@JsonProperty("business_scope")
	private String businessScope;
	private List<LeadsInvestorBean> investor;
	@JsonProperty("full_name")
	private String fullName;
	@JsonProperty("reg_unit")
	private int regUnit;
	@JsonProperty("@timestamp")
	private String timestamp;
	private String phone;
	@JsonProperty("org_approved_institution")
	private String orgApprovedInstitution;
	@JsonProperty("reg_time")
	private String regTime;
	@JsonProperty("legal_person_name")
	private String legalPersonName;
	@JsonProperty("reg_status")
	private String regStatus;
	@JsonProperty("score_popularity")
	private String scorePopularity;
	private String location;
	@JsonProperty("reg_location")
	private String regLocation;
	@JsonProperty("to_time")
	private long toTime;
	@JsonProperty("score_completion")
	private double scoreCompletion;
	@JsonProperty("found_date")
	public String getFoundDate(){
		Date date=null;
		Long approvedTime = Long.valueOf(this.approvedTime);
		if(approvedTime>0)
		{
			date=new Date(approvedTime);
		}
		if(date==null)
		{
			if(this.fromTime>0)
			{
				date=new Date(this.fromTime);
			}
		}
		if(date==null){
			return "";
		}
		return DateUtil.dateToString(date, "yyyy-MM-dd");
	}
	@JsonProperty("contact_count")
	public String getContactCount(){
		return "";
	}
	@JsonProperty("resource_count")
	public String getResourceCount(){
		return "";
	}
	@JsonProperty("score_info")
	public String getScoreInfo(){
		return "";
	}
	@JsonProperty("company_hotwords")
	public String companyHotwords()
	{
		return "";
	}
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public List<LeadsChangeInfoBean> getChangeInfo() {
		return changeInfo;
	}
	public void setChangeInfo(List<LeadsChangeInfoBean> changeInfo) {
		this.changeInfo = changeInfo;
	}
	public double getScoreRating() {
		return scoreRating;
	}
	public void setScoreRating(double scoreRating) {
		this.scoreRating = scoreRating;
	}
	public Short getScale() {
		return scale;
	}
	public void setScale(Short scale) {
		this.scale = scale;
	}
	public List<Integer> getIndustry() {
		return industry;
	}
	public void setIndustry(List<Integer> industry) {
		this.industry = industry;
	}
	public List<String> getIndustrySmall() {
		return industrySmall;
	}
	public void setIndustrySmall(List<String> industrySmall) {
		this.industrySmall = industrySmall;
	}
	public int getView() {
		return view;
	}
	public void setView(int view) {
		this.view = view;
	}
	public double getScoreKeyInfo() {
		return scoreKeyInfo;
	}
	public void setScoreKeyInfo(double scoreKeyInfo) {
		this.scoreKeyInfo = scoreKeyInfo;
	}
	public String getApprovedTime() {
		return approvedTime;
	}
	public void setApprovedTime(String approvedTime) {
		this.approvedTime = approvedTime;
	}
	public double getTotalScore() {
		return totalScore;
	}
	public void setTotalScore(double totalScore) {
		this.totalScore = totalScore;
	}
	public List<String> getArea() {
		return area;
	}
	public void setArea(List<String> area) {
		this.area = area;
	}
	public Float getRegCapital() {
		return regCapital;
	}
	public void setRegCapital(Float regCapital) {
		this.regCapital = regCapital;
	}
	public String getRegNumber() {
		return regNumber;
	}
	public void setRegNumber(String regNumber) {
		this.regNumber = regNumber;
	}
	public String getCreditCode() {
		return creditCode;
	}
	public void setCreditCode(String creditCode) {
		this.creditCode = creditCode;
	}
	public String getCompanyOrgType() {
		return companyOrgType;
	}
	public void setCompanyOrgType(String companyOrgType) {
		this.companyOrgType = companyOrgType;
	}
	public String getBusinessScope() {
		return businessScope;
	}
	public void setBusinessScope(String businessScope) {
		this.businessScope = businessScope;
	}
	public String getIntroduction() {
		return introduction;
	}
	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}
	public List<LeadsInvestorBean> getInvestor() {
		return investor;
	}
	public void setInvestor(List<LeadsInvestorBean> investor) {
		this.investor = investor;
	}
	public String getLegalPersonName() {
		return legalPersonName;
	}
	public void setLegalPersonName(String legalPersonName) {
		this.legalPersonName = legalPersonName;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public int getFollow() {
		return follow;
	}
	public void setFollow(int follow) {
		this.follow = follow;
	}
	public String getFullName() {
		return fullName;
	}
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}
	public int getRegUnit() {
		return regUnit;
	}
	public void setRegUnit(int regUnit) {
		this.regUnit = regUnit;
	}
	public String getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getRegStatus() {
		return regStatus;
	}
	public void setRegStatus(String regStatus) {
		this.regStatus = regStatus;
	}
	public String getScorePopularity() {
		return scorePopularity;
	}
	public void setScorePopularity(String scorePopularity) {
		this.scorePopularity = scorePopularity;
	}
	public long getToTime() {
		return toTime;
	}
	public void setToTime(long toTime) {
		this.toTime = toTime;
	}
	public double getScoreCompletion() {
		return scoreCompletion;
	}
	public void setScoreCompletion(double scoreCompletion) {
		this.scoreCompletion = scoreCompletion;
	}
	public String getShortName() {
		return shortName;
	}
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getWebSite() {
		return webSite;
	}
	public void setWebSite(String webSite) {
		this.webSite = webSite;
	}
	public String getLogoUrl() {
		return logoUrl==null?"http://od109ekqf.bkt.clouddn.com/company_default_logo.jpg":logoUrl;
	}
	public void setLogoUrl(String logoUrl) {
		this.logoUrl = logoUrl;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public double getScoreSource() {
		return scoreSource;
	}
	public void setScoreSource(double scoreSource) {
		this.scoreSource = scoreSource;
	}
	public String getTaxNumberNo() {
		return taxNumberNo;
	}
	public void setTaxNumberNo(String taxNumberNo) {
		this.taxNumberNo = taxNumberNo;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public List<OperationBean> getOperation() {
		return operation;
	}
	public void setOperation(List<OperationBean> operation) {
		this.operation = operation;
	}
	public List<LawsuitBean> getLawsuit() {
		return lawsuit;
	}
	public void setLawsuit(List<LawsuitBean> lawsuit) {
		this.lawsuit = lawsuit;
	}
	public List<AnnouncementBean> getAnnouncement() {
		return announcement;
	}
	public void setAnnouncement(List<AnnouncementBean> announcement) {
		this.announcement = announcement;
	}
	public Integer getIndexBaidu() {
		return indexBaidu;
	}
	public void setIndexBaidu(Integer indexBaidu) {
		this.indexBaidu = indexBaidu;
	}
	public Integer getIndexWechat() {
		return indexWechat;
	}
	public void setIndexWechat(Integer indexWechat) {
		this.indexWechat = indexWechat;
	}
	public String getAnnualSales() {
		return annualSales;
	}
	public void setAnnualSales(String annualSales) {
		this.annualSales = annualSales;
	}
	public List<FinanceBean> getFinance() {
		return finance;
	}
	public void setFinance(List<FinanceBean> finance) {
		this.finance = finance;
	}
	public List<InvestBean> getInvest() {
		return invest;
	}
	public void setInvest(List<InvestBean> invest) {
		this.invest = invest;
	}
	public List<TaxInfoBean> getTax() {
		return tax;
	}
	public void setTax(List<TaxInfoBean> tax) {
		this.tax = tax;
	}
	public String getAliasName() {
		return aliasName;
	}
	public void setAliasName(String aliasName) {
		this.aliasName = aliasName;
	}
	public String getOrgNumber() {
		return orgNumber;
	}
	public void setOrgNumber(String orgNumber) {
		this.orgNumber = orgNumber;
	}
	public String getRegLocation() {
		return regLocation == null?"":regLocation;
	}
	public void setRegLocation(String regLocation) {
		this.regLocation = regLocation;
	}
	public String getIndustryStr() {
		return industryStr;
	}
	public void setIndustryStr(String industryStr) {
		this.industryStr = industryStr;
	}
	public String getIndustrySmallStr() {
		return industrySmallStr;
	}
	public void setIndustrySmallStr(String industrySmallStr) {
		this.industrySmallStr = industrySmallStr;
	}
	public long getFromTime() {
		return fromTime;
	}
	public void setFromTime(long fromTime) {
		this.fromTime = fromTime;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Integer getProvince() {
		return province==null?0:province;
	}
	public void setProvince(Integer province) {
		this.province = province;
	}
	public Integer getCity() {
		return city==null?0:city;
	}
	public void setCity(Integer city) {
		this.city = city;
	}
	public String getRegTime() {
		return regTime==null?"":regTime;
	}
	public void setRegTime(String regTime) {
		this.regTime = regTime;
	}
	public List<PortraitProductServiceBean> getProductService() {
		return productService;
	}
	public void setProductService(List<PortraitProductServiceBean> productService) {
		this.productService = productService;
	}
	public List<TeamStrengthBean> getMembers() {
		return members;
	}
	public void setMembers(List<TeamStrengthBean> members) {
		this.members = members;
	}
	public List<CopyrightBean> getCopyright() {
		return copyright;
	}
	public void setCopyright(List<CopyrightBean> copyright) {
		this.copyright = copyright;
	}
	public List<PatentBean> getPatent() {
		return patent;
	}
	public void setPatent(List<PatentBean> patent) {
		this.patent = patent;
	}
	
	public String getPartners() {
		return partners;
	}
	public void setPartners(String partners) {
		this.partners = partners;
	}
	public String getOrgApprovedInstitution() {
		return orgApprovedInstitution;
	}
	public void setOrgApprovedInstitution(String orgApprovedInstitution) {
		this.orgApprovedInstitution = orgApprovedInstitution;
	}
	public String getOrgApprovedInstitute() {
		return orgApprovedInstitute+"11";
	}
	public void setOrgApprovedInstitute(String orgApprovedInstitute) {
		this.orgApprovedInstitute = orgApprovedInstitute;
	}
}
